package com.dsiab.manageService.service;

import com.dsiab.manageService.entity.*;

import java.util.List;
import java.util.Map;

public interface AdminService {

  public Map getDetail(String id);

  public Map getListByCatePage(PagesDto pagesDto);

  public Map getUserListByPage(String page);

  public Map getRoleList();

  public void updateRole(Map roleMap);

  public Map<String, Object> getNavList(Map map);

  public void insertComment(CommentsDto commentsDto);

  public int insertOne(PagesDto pagesDto);

  public void delOne(int id);

  public void batchDelPost(List ids);

  public int updateOne(PagesDto pagesDto) throws Exception;

  public void insertCate(CateDto cateDto);

  public void updateCate(CateDto cateDto);

  public void delCate(int id);

  public void delComment(List ids);

  public void clearCache();

  public Object getCateList();

  public void insertTopic(TopicDto topicDto);

  public void updateTopic(TopicDto topicDto);

  public Object getTopicList();

  public void addPostToTopic(TopicDto topicDto);

  public Object getTopicDetailList(TopicDto topicDto);

  public void deleteTopic(TopicDto topicDto);

  public void deleteTopicDetail(TopicDto topicDto);

  public Map getRecycleListByCatePage(PagesDto pagesDto);

  public void deletePost(List ids);

  public void insertMenu(MenuDto menuDto);

  public Map getMenuList(MenuDto menuDto);

  public void updateMenu(MenuDto menuDto);

  public void deleteMenu(MenuDto menuDto);

  public Map getMenus();

  public void updateRoleName(Map map);

  public Map getMenuByRole(int roleId);

  public Map getAllMenus();

  public void addNotice(String title,String content);

  public Map getNotice(NoticeDto noticeDto);

  public void updatePwd(Map map) throws Exception;

  public Map getAllComment(CommentsDto commentsDto);

  public Object getListByTagsPage(String tag,String page);

  public void approveComment(String id);

  public void recoveryPost(String uid);
}
